import React from 'react';
import { ProjectOutlined, SmileOutlined } from '@ant-design/icons';
import { MenuDataItem } from '@ant-design/pro-layout';

const MENU_CONFIG: MenuDataItem[] = [
  {
    path: '/',
    name: '首页',
    icon: React.createElement(SmileOutlined),
  },
  {
    path: '/project',
    name: '项目管理',
    icon: React.createElement(ProjectOutlined),
    children: [{
      path: '/project/all',
      name: '所有项目',
      icon: React.createElement(ProjectOutlined),
    }, {
      path: '/project/my',
      name: '我的项目',
      icon: React.createElement(ProjectOutlined),
    }]
  }
];

export default MENU_CONFIG;
